# -*- coding: utf-8 -*-
"""
Created on Mon Nov 23 14:51:52 2015

@author: liliangrong
"""
"""模仿静态变量的用法。"""

num = 2
def autofunc():
    num = 1
    print "internal bock num = %d" %num
    num += 1

for i in xrange(3):
    print "the num = %d" % num
    num += 1
    autofunc()